import request from '@/utils/request';
export const activityList = () => {
    return request({ url: `/tienchin/activity/list`, method: "get" })
}
export const findActivity = (data: any) => {
    return request({ url: `/tienchin/activity/list`, method: "get", params: data })
}
export const channelList = () => {
    return request({ url: `/tienchin/activity/channel/list`, method: "get" })
}

export const addActivity = (data: any) => {
    return request({ url: `/tienchin/activity`, method: "post", data: data })
}

export const expostActivity = () => {
    return request({ url: `/tienchin/activity/export`, method: "post" })
}
export const editActivity = (data: any) => {
    return request({ url: `/tienchin/activity`, method: "put", data: data })
}
export const ActivityData = (data: any) => {
    return request({ url: `/tienchin/activity/${data}`, method: "get" })
}

export const ActivityDelete = (data: any) => {
    return request({ url: `/tienchin/activity/${data}`, method: "delete" })
}